package com.meshnetics.gb.type.impl.zcl;

/**
 * WRITE DESCRIPTION HERE
 *
 * @author AKovylin
 */
public class GeneralData extends FixedBytesDataValue {
    // write comment - constructor only for extension, no checks or cloning performed!
    // (to avoid double checks/cloning, checks/cloning must be done by type on deserialization)
    protected GeneralData(TypeGeneralData type, byte[] value) {
        super(type, value);
    }

    public boolean isInvalid() {
        return false; // general data always valid
    }

    public Object toObject() {
        return value.clone();
    }

    protected boolean isUnsigned() {
        return true;
    }
}
